<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/Css/public.css"/>
</head>
<body>
<form method='post' action='<?php echo U("Admin/Excel/upload");?>' enctype='multipart/form-data'>
    <h3>导入Excel表：</h3><input  type='file' name='file_stu'/>
    <input type='submit'  value='导入' />
</form>

<form action="<?php echo U('Admin/Excel/index');?>" method="post">
    <h3>请选择学年</h3>
    <select name="school_year">
        <?php if(is_array($sch_year)): foreach($sch_year as $key=>$m): ?><option value="<?php echo ($m["l"]); ?>-<?php echo ($m["b"]); ?>"><?php echo ($m["l"]); ?>-<?php echo ($m["b"]); ?></option><?php endforeach; endif; ?>
    </select>
    <h3>请选择学期</h3>
    <select name="term">
        <option value="1">1</option>
        <option value="2">2</option>

    </select>
    <input type="submit" value="查询">

</form>

<table class="table">
    <tr>
        <th>成绩已倒入的班级</th>
        <th>学年</th>
        <th>学期</th>
        <th>操作</th>
    </tr>
    <?php if(is_array($class)): foreach($class as $key=>$m): ?><tr>
        <form action="<?php echo U('Admin/Excel/delete');?>" method="post">
        <td><?php echo ($m["class"]); ?><input type="hidden" value="<?php echo ($m["class"]); ?>" name="class"></td>
        <td><?php echo ($m["school_year"]); ?><input type="hidden" value="<?php echo ($m["school_year"]); ?>" name="school_year"></td>
        <td><?php echo ($m["term"]); ?><input type="hidden" value="<?php echo ($m["term"]); ?>" name="term"></td>
        <td><input type="submit" value="删除成绩"></td>
        </form>
    </tr><?php endforeach; endif; ?>
</table>
</body>
</html>